#include<iostream>
#include <fstream>
#include"Singleton.h"

using namespace std;


int main() {
    Singleton * a = Singleton::init("qwerty");
    cout << a->toString() << endl;
    delete a;
    Singleton * b = Singleton::init("asd");
    a = b;
    Singleton * c = Singleton::init();
    cout << b->toString() << endl;
    cout << c->toString() << endl;
    delete b;
    delete c;
    return 0;
}
